package cn.com.bluemoon.daps.standard.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import cn.com.bluemoon.daps.standard.entity.DapStandardBasic;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 用来接收Excel文件的sheet2的数据结构实体类
 *
 * @author Jarod.Kong
 * @date 2020/8/25 15:29
 */
@Data
@Accessors
@EqualsAndHashCode
public class BasicStandardAndDicMiddleVo implements Serializable, IExcelModel, IExcelDataModel {
    private static final long serialVersionUID = 1L;

    @Excel(name = "*中文名称")
    private String name;

    /**
     * 对应excel导入中的sheet1的引用代码
     * {@link DapStandardBasic#getSourceCode()}
     */
    @Excel(name = "*代码名称")
    private String baseCodeName;

    @Excel(name = "别名")
    private String alias;

    @Excel(name = "模块归属")
    private String moduleName;

    @Excel(name = "备注")
    private String baseRemark;

    @TableField(exist = false)
    private String errorMsg;

    @TableField(exist = false)
    private int rowNum;

}
